package com.douyuehan.doubao.wechatpay.utils;

import okhttp3.MediaType;
import okhttp3.Request;
import okhttp3.RequestBody;

public class WeChatClient {


    public static String post(String url, String param) {
        Request request = new Request.Builder().url(url).post(RequestBody.create(MediaType.parse("application/json"), param)).build();
        return HttpClient.doRequest(request);
    }

    public static String get(String url) {
        Request request = new Request.Builder().url(url).get().build();
        return HttpUtil.doGet(url);
    }


}
